const USER_KEY = "erp_user_info"; //存储用户信息的key

export function setUser(data){
  sessionStorage.setItem(USER_KEY,JSON.stringify(data));
}
export function getUser(){
  let tmp = sessionStorage.getItem(USER_KEY);
  if (null==tmp)return{};
  //返回用户信息
  return JSON.parse(tmp);
}
